package com.zt.yongxinbao.mapper;

import com.zt.yongxinbao.entity.UserDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface UserDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserDetail record);

    int insertSelective(UserDetail record);

    UserDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserDetail record);

    int updateByPrimaryKey(UserDetail record);

    UserDetail selectByUsername(String username);

    List<UserDetail> selectAll();

    int updateUserAvatar(@Param("username") String username, @Param("avatar") String avatar);

    int updateUserTelPhone(@Param("username") String username,@Param("telPhone") String telPhone);

    int updateUserActualName(@Param("username") String username,@Param("actualName") String actualName);

    int updateUserSex(@Param("username") String username,@Param("sex") String sex);

}